package cn.hpu.mobile_bank.mapper;

import cn.hpu.mobile_bank.domain.Account;
import cn.hpu.mobile_bank.dto.resp.AccountNameAndRealNameDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author DELL
* @description 针对表【account】的数据库操作Mapper
* @createDate 2024-06-12 17:30:07
* @Entity generator.domain.Account
*/
public interface AccountMapper extends BaseMapper<Account> {

    //获取与指定手机号已经绑定的用户
    List<Account> selectByTelephone(String telephoneId);

    //获取指定手机号的所有账户
    List<Account> selectByTelephoneAll(String telephone);

    //获取指定手机号还没有绑定的用户
    List<Account> selectByTelephoneNot(String telephone);

    /**
     * 查询关联的账户
     */
    Account selectByTelephoneAndAccountId(String telephone, Integer accountId);

    Account selectByPersonNameAndAccountName(String recepAccount, String recepName);

    AccountNameAndRealNameDto selectByAccountId(Integer id,String realName,String accountName);
}




